﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;

namespace ProductionAnalysis.Web
{
    public partial class Product : System.Web.UI.Page
    {
        
        protected void Button1_Click1(object sender, EventArgs e)
        {
            PackageProduct pp = new PackageProduct();
            //PackageProductInfo ppi = pp.GetPackageProductbyPackageProductSN(this.TextBox1.Text.Trim());
            //string productSN = ppi.ProductSN;
            //string message;
            //pp.IsValid_NineStep_DataCheck(productSN, out message);
            //Response.Write(message);
            if (!string.IsNullOrEmpty(pp.GetPackageProductbyPackageProductSN(this.TextBox1.Text.Trim()).ProductSN)
            && pp.GetPackageProductbyPackageProductSN(this.TextBox1.Text.Trim()).IsPackage.Equals("Yes", StringComparison.OrdinalIgnoreCase))
            {
                Response.Write("已经包装");
            }
            else
            {
                Response.Write("还没有包装");
            }
        }
    }
}



